<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript">
    let json1 = {age: 18, name:"张三", sex:"男"};
    console.log(typeof json1);
    console.log(json1);
    // json数组
    console.log("-------")
    let json2 = ["jack", "tom", "rose", "jerry"];
    console.log(typeof json2);
    console.log(json2);
    console.log(json2[0]);
    console.log(json2[1]);
    // json
    console.log("-------")
    let json3 = [{name:"zangshang", age:18}, {name:"xiao", age:19}, {name:"wangwu", age:22}];
    console.log(json3);
    console.log(json3[1].name)
    console.log(json3[1].age)

</script>
</body>
</html>